3.26 \(\int \frac {(e x)^m (A+B x^n)}{(a+b x^n) (c+d x^n)} \, dx\)

Optimal. Leaf size=127 \[ \frac {(e x)^{m+1} (A b-a B) \, _2F_1\left (1,\frac {m+1}{n};\frac {m+n+1}{n};-\frac {b x^n}{a}\right )}{a e (m+1) (b c-a d)}+\frac {(e x)^{m+1} (B c-A d) \, _2F_1\left (1,\frac {m+1}{n};\frac {m+n+1}{n};-\frac {d x^n}{c}\right )}{c e (m+1) (b c-a d)} \]

[Out]

(A*b-B*a)*(e*x)^(1+m)*hypergeom([1, (1+m)/n],[(1+m+n)/n],-b*x^n/a)/a/(-a*d+b*c)/e/(1+m)+(-A*d+B*c)*(e*x)^(1+m)
*hypergeom([1, (1+m)/n],[(1+m+n)/n],-d*x^n/c)/c/(-a*d+b*c)/e/(1+m)

________________________________________________________________________________________

Rubi [A]  time = 0.14, antiderivative size = 127, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {597, 364} \[ \frac {(e x)^{m+1} (A b-a B) \, _2F_1\left (1,\frac {m+1}{n};\frac {m+n+1}{n};-\frac {b x^n}{a}\right )}{a e (m+1) (b c-a d)}+\frac {(e x)^{m+1} (B c-A d) \, _2F_1\left (1,\frac {m+1}{n};\frac {m+n+1}{n};-\frac {d x^n}{c}\right )}{c e (m+1) (b c-a d)} \]

Antiderivative was successfully verified.

[In]

Int[((e*x)^m*(A + B*x^n))/((a + b*x^n)*(c + d*x^n)),x]

[Out]

((A*b - a*B)*(e*x)^(1 + m)*Hypergeometric2F1[1, (1 + m)/n, (1 + m + n)/n, -((b*x^n)/a)])/(a*(b*c - a*d)*e*(1 +
 m)) + ((B*c - A*d)*(e*x)^(1 + m)*Hypergeometric2F1[1, (1 + m)/n, (1 + m + n)/n, -((d*x^n)/c)])/(c*(b*c - a*d)
*e*(1 + m))

Rule 364

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a^p*(c*x)^(m + 1)*Hypergeometric2F1[-
p, (m + 1)/n, (m + 1)/n + 1, -((b*x^n)/a)])/(c*(m + 1)), x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 597

Int[(((g_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((e_) + (f_.)*(x_)^(n_)))/((c_) + (d_.)*(x_)^(n_)), x_Sy
mbol] :> Int[ExpandIntegrand[((g*x)^m*(a + b*x^n)^p*(e + f*x^n))/(c + d*x^n), x], x] /; FreeQ[{a, b, c, d, e,
f, g, m, n, p}, x]

Rubi steps

\begin {align*} \int \frac {(e x)^m \left (A+B x^n\right )}{\left (a+b x^n\right ) \left (c+d x^n\right )} \, dx &=\int \left (\frac {(A b-a B) (e x)^m}{(b c-a d) \left (a+b x^n\right )}+\frac {(B c-A d) (e x)^m}{(b c-a d) \left (c+d x^n\right )}\right ) \, dx\\ &=\frac {(A b-a B) \int \frac {(e x)^m}{a+b x^n} \, dx}{b c-a d}+\frac {(B c-A d) \int \frac {(e x)^m}{c+d x^n} \, dx}{b c-a d}\\ &=\frac {(A b-a B) (e x)^{1+m} \, _2F_1\left (1,\frac {1+m}{n};\frac {1+m+n}{n};-\frac {b x^n}{a}\right )}{a (b c-a d) e (1+m)}+\frac {(B c-A d) (e x)^{1+m} \, _2F_1\left (1,\frac {1+m}{n};\frac {1+m+n}{n};-\frac {d x^n}{c}\right )}{c (b c-a d) e (1+m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.15, size = 102, normalized size = 0.80 \[ \frac {x (e x)^m \left ((a B c-A b c) \, _2F_1\left (1,\frac {m+1}{n};\frac {m+n+1}{n};-\frac {b x^n}{a}\right )+a (A d-B c) \, _2F_1\left (1,\frac {m+1}{n};\frac {m+n+1}{n};-\frac {d x^n}{c}\right )\right )}{a c (m+1) (a d-b c)} \]

Antiderivative was successfully verified.

[In]

Integrate[((e*x)^m*(A + B*x^n))/((a + b*x^n)*(c + d*x^n)),x]

[Out]

(x*(e*x)^m*((-(A*b*c) + a*B*c)*Hypergeometric2F1[1, (1 + m)/n, (1 + m + n)/n, -((b*x^n)/a)] + a*(-(B*c) + A*d)
*Hypergeometric2F1[1, (1 + m)/n, (1 + m + n)/n, -((d*x^n)/c)]))/(a*c*(-(b*c) + a*d)*(1 + m))

________________________________________________________________________________________

fricas [F]  time = 0.76, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (B x^{n} + A\right )} \left (e x\right )^{m}}{b d x^{2 \, n} + a c + {\left (b c + a d\right )} x^{n}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)^m*(A+B*x^n)/(a+b*x^n)/(c+d*x^n),x, algorithm="fricas")

[Out]

integral((B*x^n + A)*(e*x)^m/(b*d*x^(2*n) + a*c + (b*c + a*d)*x^n), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B x^{n} + A\right )} \left (e x\right )^{m}}{{\left (b x^{n} + a\right )} {\left (d x^{n} + c\right )}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)^m*(A+B*x^n)/(a+b*x^n)/(c+d*x^n),x, algorithm="giac")

[Out]

integrate((B*x^n + A)*(e*x)^m/((b*x^n + a)*(d*x^n + c)), x)

________________________________________________________________________________________

maple [F]  time = 0.99, size = 0, normalized size = 0.00 \[ \int \frac {\left (B \,x^{n}+A \right ) \left (e x \right )^{m}}{\left (b \,x^{n}+a \right ) \left (d \,x^{n}+c \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x)^m*(B*x^n+A)/(b*x^n+a)/(d*x^n+c),x)

[Out]

int((e*x)^m*(B*x^n+A)/(b*x^n+a)/(d*x^n+c),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B x^{n} + A\right )} \left (e x\right )^{m}}{{\left (b x^{n} + a\right )} {\left (d x^{n} + c\right )}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)^m*(A+B*x^n)/(a+b*x^n)/(c+d*x^n),x, algorithm="maxima")

[Out]

integrate((B*x^n + A)*(e*x)^m/((b*x^n + a)*(d*x^n + c)), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (e\,x\right )}^m\,\left (A+B\,x^n\right )}{\left (a+b\,x^n\right )\,\left (c+d\,x^n\right )} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((e*x)^m*(A + B*x^n))/((a + b*x^n)*(c + d*x^n)),x)

[Out]

int(((e*x)^m*(A + B*x^n))/((a + b*x^n)*(c + d*x^n)), x)

________________________________________________________________________________________

sympy [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: HeuristicGCDFailed} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x)**m*(A+B*x**n)/(a+b*x**n)/(c+d*x**n),x)

[Out]

Exception raised: HeuristicGCDFailed

________________________________________________________________________________________